#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>
int cmp(const void* e1, const void* e2)
{
	return ( * (int*)e1 - *(int*)e2);
}
int main()
{
	int arr[10] = { 9,8,7,6,4,5,6,2,3,1 };
	/*for (int i = 0;i < 10;i++)
	{
		scanf("%d", &arr[i]);
	}*/
	qsort(arr, 10, 4, cmp);
	for (int i = 0;i < 10;i++)
	{
		printf("%d ", arr[i]);
	}
	return 0;
}